package com.ys.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.ys.entity.Dept;
import com.ys.entity.User;
import com.ys.service.impl.DeptServiceImpl;
import com.ys.service.impl.UserServiceImpl;

@Controller
public class UserController {
    @Autowired  
    private DeptServiceImpl deptService;  
    
    
    @RequestMapping(value="getDept.do")
	public String getDept(Model model,int uid){
    	System.out.println("111");
    	Dept dept = deptService.getDept(uid);
		model.addAttribute("dept", dept);
		return "details";
	}
    
	
}
